package com.example.demo.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author fjh
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("exam_file")
public class ExamFile {
    @TableId
    private Integer id;
    private String fileName;
    private String createUser;
    private Integer parentId;
    private String nodeId;
    private Integer level;

    public void initExamFile(ExamFile examFile){
        this.fileName=examFile.getFileName();
        this.createUser=examFile.getCreateUser();
        this.parentId=examFile.getParentId();
        this.nodeId=examFile.getNodeId();
        this.level=examFile.getLevel();
    }
}
